package com.example.tiptravel.api;

import com.example.tiptravel.entity.home.Banner;
import com.example.tiptravel.entity.home.Labels;
import com.example.tiptravel.entity.home.NearBy;
import com.example.tiptravel.entity.home.spot.SpotEntity;

import java.util.Map;

import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by 45820 on 2016/11/9.
 */

public interface HomeService {

    /**
     * Banners
     */
    String BANNERS_PATH = "Adv/get_banners";

    @FormUrlEncoded
    @POST(BANNERS_PATH)
    Observable<Banner> getBannerData(@FieldMap Map<String, String> map);


    /**
     * NearBy
     */
    String NEARBY_PATH = "Scenic/get_nearby";

    @FormUrlEncoded
    @POST(NEARBY_PATH)
    Observable<NearBy> getNearByData(@FieldMap Map<String, String> map);

    /**
     * Label
     */
    String LABEL_PATH = "Label/get_index_labels";

    @FormUrlEncoded
    @POST(LABEL_PATH)
    Observable<Labels> getLabelData(@FieldMap Map<String, String> map);


    /**
     * spot
     */
    String SPOT_PATH = "Scenic/get_index_scenics";

    @FormUrlEncoded
    @POST(SPOT_PATH)
    Observable<SpotEntity> getSpotData(@FieldMap Map<String, String> map);

}
